package self.facade;

import self.service.Listenable;
import self.service.Readable;
import self.service.Speakable;
import self.serviceimpl.Listen;
import self.serviceimpl.Read;
import self.serviceimpl.Speak;


/*
 * 外观设计模式：Facade
 * 模式类型：结构类
 */
public class FacadeService {
	
	private Listenable listening;
	private Readable   reading;
	private Speakable  speaking;
	
	public FacadeService(){
		listening = new Listen();
		reading   = new Read();
		speaking  = new Speak();
	}
	
	public void ability(String content){
		listening.listening(content);
		reading.readSomething(content);
		speaking.saySomething(content);
	}

}
